Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ML-DSA] Add domain separation for key generation #609

Merged
merged 6 commits into from
Oct 1, 2024

Conversation

jschneider-bensch
Copy link
Collaborator

@jschneider-bensch jschneider-bensch commented Oct 1, 2024

In key generation, the variant parameters are prepended to the key generation randomness before extracting the initial seed. This is supposed to prevent issues when the same seed is used for key generation in different parameter sets.

Fixes #499

@jschneider-bensch jschneider-bensch linked an issue Oct 1, 2024 that may be closed by this pull request
Copy link
Member

@franziskuskiefer franziskuskiefer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I threw a vector from https://github.com/usnistgov/ACVP-Server/blob/master/gen-val/json-files/ML-DSA-keyGen-FIPS204/prompt.json on this and it failed. With the fix in the comment it passes.

libcrux-ml-dsa/src/ml_dsa_generic.rs Outdated Show resolved Hide resolved
Base automatically changed from jonas/pre-hashed to main October 1, 2024 13:59
Copy link
Member

@franziskuskiefer franziskuskiefer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@jschneider-bensch jschneider-bensch added this pull request to the merge queue Oct 1, 2024
Merged via the queue into main with commit 8f4efd8 Oct 1, 2024
48 checks passed
@jschneider-bensch jschneider-bensch deleted the jonas/mldsa-keygen-domain-separation branch October 1, 2024 15:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Domain separation in ML-DSA.KeyGen()
2 participants